package com.weixx.yctp.config;

public class RoleMethodContextHolder {

    private static ThreadLocal<RoleMethodContext> local = ThreadLocal.withInitial(RoleMethodContext::new);

    public static RoleMethodContext get(){
        return local.get();
    }

    public static void init(){
        if (local.get() == null){
            local.set(new RoleMethodContext());
        }
    }

    public static void clear(){
        local.remove();
    }



}
